package com.aliang.shopping.mapper;

import com.aliang.shopping.model.dto.business.BusinessSearchDTO;
import com.aliang.shopping.model.po.Business;
import com.aliang.shopping.model.vo.business.BusinessVO;
import com.aliang.shopping.model.vo.chat.SimpleContactVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ShiBaLover
 * @description 针对表【business(商家表)】的数据库操作Mapper
 * @createDate 2024-10-19 14:31:33
 * @Entity com.aliang.shopping.modul.po.Business
 */
public interface BusinessMapper extends BaseMapper<Business> {
    IPage<BusinessVO> getPage(IPage<BusinessVO> page, @Param("do") BusinessSearchDTO pageDTO);

    List<BusinessVO> getVoList(@Param("do") BusinessSearchDTO pageDTO);


    List<SimpleContactVO> getNickNameById(@Param("ids")List<Long> contactIds);
}




